package hw2.cs236369;

import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.Set;

/**
 * @author cs236369
 */
public interface HTMLParser {
	/**
	 * This method invokes parsing the given page so later on {@link #getTags()} and {@link #getTagsCount()} will be called
	 * @param url - link to a HTML page
	 * @throws  MalformedURLException in case the input url is not a proper HTML file
	 */
	void parseTags(String url) throws MalformedURLException;
	/**
	 * @return <strong>Set&lt;String&gt;</strong> all the tags in the HTML page.The order of the tags in the list should be the same as their order in the processed HTML page 
	 */
	Set<String> getTags();
	/**
	 * @return HashMap that maps for each HTML tag the number of occurrences
	 */
	HashMap<String, Integer> getTagsCount();	
	
}